package com.aleaho.cftrack.http.api;


import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

import com.aleaho.cftrack.http.ApiResponseWraperNoList;
import com.aleaho.cftrack.http.RequestParam;
import com.aleaho.cftrack.http.entity.LoginEntity;

/**
 * Created by Administrator on 2017/9/20.
 */

public interface LoginApi {
    @FormUrlEncoded
    @POST("login/")
    Observable<ApiResponseWraperNoList<LoginEntity>> login(@Field("username") String username, @Field("password") String password);

//    Observable<ApiResponseWraperNoList<LoginEntity>> login(@Body RequestParam params);
}
